package fecat.ui.frame;

import java.awt.Dimension;

import javax.swing.JComponent;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import fecat.services.data.IQuotePriceChangeListener;
import fecat.services.quote.QuoteService;
import fecat.services.resource.ResourceService;
import fecat.ui.contextpanel.exchange.QuoteTable;
import fecat.ui.contextpanel.table.SortManager;

public class SimpleQuoteFrame extends BaseFrame {

	public SimpleQuoteFrame(String name) {
		super(name);
	}
	public JComponent createChildComponent(){
		desktop=new QuoteTable();
		
//		desktop.setPreferredSize(new Dimension(1200,100));
		desktop.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
		return desktop;
	}
	public void updateText() {
		String title=ResourceService.getString("Frame.Simple.Title");
		this.setTitle(title);
		String tabTitle=ResourceService.getString("Frame.Simple.TabTile");
		this.setTabTitle(tabTitle);
	}
}
